package com.syni.mdd.yhd.common.all.entity.pay.wxmodel;

import com.ijpay.core.model.BaseModel;
import lombok.Data;

/**
 * @className ReceiversModel
 * @description TOO
 * @Author cfx
 * @DATE 2020/3/16 12:00
 * @VERSION 1.0
 **/
@Data
public class ReceiversAddModel extends BaseModel {
    private String type;
    private String account;
    private String name;
    private String relation_type;

    public static ReceiversAddModel.ReceiversAddModelBuilder builder() {
        return new ReceiversAddModel.ReceiversAddModelBuilder();
    }

    public ReceiversAddModel(String type, String account, String name, String relationType) {
        this.type = type;
        this.account = account;
        this.name = name;
        this.relation_type = relationType;
    }

    public static class ReceiversAddModelBuilder {
        private String type;
        private String account;
        private String name;
        private String relation_type;

        ReceiversAddModelBuilder() {
        }

        public ReceiversAddModel.ReceiversAddModelBuilder type(String type) {
            this.type = type;
            return this;
        }

        public ReceiversAddModel.ReceiversAddModelBuilder account(String account) {
            this.account = account;
            return this;
        }

        public ReceiversAddModel.ReceiversAddModelBuilder name(String name) {
            this.name = name;
            return this;
        }

        public ReceiversAddModel.ReceiversAddModelBuilder relationType(String relationType) {
            this.relation_type = relationType;
            return this;
        }

        public ReceiversAddModel build() {
            return new ReceiversAddModel(this.type, this.account, this.name, this.relation_type);
        }

    }
}
